<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp" %>
<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <META HTTP-EQUIV="pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
    <META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
    <title>${title}</title>
    <%@ include file="/WEB-INF/jsp/commons/meta.jsp" %>
    <link href="${ctx}/resources/new/style.css" type="text/css" rel="stylesheet"/>

</head>
<body>


<div>
    <table class="table table-striped table-bordered table-condensed">
        <thead>
        <i class="icon-flag"></i>
        <strong>参数设置</strong>
        </thead>
        <tr>
            <th>订单自动确认收货设置:</th>
        </tr>
        <tr>
            <td>
                <form id="inputForm form-inline" action="${ctx}/adoms/department/setting" method="post">
                    <input type="hidden" name="id" value="${orderSetting.id}"/>
                    <input type="hidden" name="user.id" value="${USER.id}"/>
                    <input type="hidden" name="department.id" value="${USER.department.id}"/>
                    <input type="hidden" name="type" value="ORDER_AUTO_RECEIVE"/>

                    <label>自动确认收货时间:</label>
                    <select name="config" class="input-small" style="margin-bottom: 0px;">
                        <option value="0">不设置</option>
                        <c:forEach begin="1" end="30" step="1" var="day">
                            <option value="${day}" ${orderSetting.config == day ? 'selected':''}>${day}天</option>
                        </c:forEach>
                    </select>
                    <input type="submit" value="提交" class="btn btn-info"/>

                </form>
            </td>
        </tr>

    </table>
</div>
<script>
    $(function () {

        //聚焦第一个输入框
        $("#name").focus();
        //为inputForm注册validate函数
        $("#inputForm").validate({

        });


    });


</script>

</body>
</html>